home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / bbs / cave13.zip / CODES.TXT next >
Text File  |  1996-01-07  |  3KB  |  87 lines

  1. This file lists the program codes for the new built in Random Happening
  2. Program (RHP) system.  See LORDCAVE.DOC under the section [EXTRA SETUP
  3. INFO] for how to install your RHPs into The LORD Cavern.  For a list of
  4. LORD codes to use in player's mail, see the file LORDSTRC.PAS that came
  5. with LORD.  Remember that if you distribute your programs, please give
  6. me credit for writing The LORD Cavern!
  7.                                         
  8. Look at PROGRAM.SMP to see how these can be used.
  9.  
  10. The RHP language uses codes that have a @ on both sides, that must be
  11. capitalized and that must be the first and only thing on a line (unless it
  12. needs parameters).
  13.  
  14. This first set is just normal commands with no parameters.
  15.  
  16. @;@      Comment, everyting on a line with this at the front will be ignored
  17. @CLEAR@  Clear the screen
  18. @MORE@   Pause for keypress with "<MoRE>"
  19. @DELAY@  Small delay (250 milliseconds)
  20. @END@    Stop program and pause
  21.  
  22. This set is for writing to a player's MAIL?.DAT and LORD's LOGNOW.TXT.
  23.  
  24. @MAIL@      Start writing to mail
  25. @MAILEND@   Stop writing to mail
  26. @NEWS@      Start writing to LOGNOW.TXT
  27. @NEWSLINE@  Stop writing to LOGNOW.TXT and add a line "-=-=-=-" centered
  28. @NEWSEND@   Stop writing to LOGNOW.TXT
  29.  
  30. The following two sets can be used in mail and news recordings.
  31.  
  32. The next set is for designating setions to go to.
  33.  
  34. @#xxxxxxxx         Section designation, 8 character max
  35. @GOTO@ @#xxxxxxxx  Go to section xxxxxxx after this command
  36.  
  37. The one in this section is for making lengths of strings.
  38.  
  39. @SPACE@ x  Add x spaces to string
  40.  
  41. The following set is for prompting for input.  The single character
  42. section is used to act on input.  The program runner acts on the first
  43. matching section found, so don't use the same selections nested.
  44. Example: @PROMPT@ CD (prompts for C and D selections, must be an @##C and
  45.                       @##D sections later.)
  46.  
  47. @YESNO@        Prompt for Y/n, Y and N sections
  48. @PROMPT@ xx..  Prompt for selections xx.., selections must be capitalized
  49.                The first selection will be the default one
  50. @RANDOM@ x     Random number between 1 and x, each number a section
  51. @##x           Single character section
  52.  
  53. The following set has some special properties.  If you put a = before the
  54. number x, it makes that attribute equal to x.  If you put %, it adds /
  55. subtracts x% of the existing attribute to the attribute.
  56. Example: @EXPERIENCE@ %-15 (Subtracts 15% of experience)
  57. Example: @GOLD@ =0 (Sets gold in hand to 0)
  58.  
  59. @SEARCH@ x      LORD Cavern seraches
  60. @FOREST@ x      Forest fights
  61. @FIGHTS@ x      Player fights
  62. @KIDS@ x        Kids
  63. @DEFENCE@ x     Defence
  64. @STRENGTH@ x    Strength
  65. @EXPERIENCE@ x  Experience
  66. @LAYS@ x        Lays
  67. @SKILL@ x       Current Skill type (if resulting number is above 40 the
  68.                 Skill value is set to 40, no uses are given)
  69. @HITPOINTS@ x   Current HitPoints
  70. @HITMAX@ x      Max HitPoints
  71. @GEMS@ x         Gems
  72. @GOLD@ x        Gold in Hand
  73. @BANK@ x        Gold in Bank
  74. @CHARM@ x       Charm
  75.  
  76. The following codes can be put anywhere in a line, even in mail and news
  77. recording.  They are case sensitive!
  78.  
  79. `n  Put player's name
  80. `a  Put player's armour name
  81. `w  Put player's weapon name
  82. `l  Do not linefeed (put at the end of a line)
  83. `s  Put player's sex (he/she)
  84. `o  Put player's opposite sex (he/she)
  85. `[  Put player's sex possesive (his/her)
  86. `]  Put player's opposite sex possesive (his/her)
  87.